package com.jxsd.edu.cn.struts2.dao;

import java.util.List;

import com.jxsd.edu.cn.struts2.models.PublishGoodAttribute;

public interface PublishGoodAttributeDao
{
     /**
      * add  a  PublishGoodAttribute
      * */
	public   void  addAttribute(PublishGoodAttribute  attribute);
	/**
	 * delete  a  publishGoodAttribute
	 * */
	public  void  deleteAttribute(String  attributeId);
	/**
	 * get  all  attributes  of  a  publishMsg
	 * */
	public  List<PublishGoodAttribute>  getAttributes(String  publishId);
   /**
    * 更新某个物品信息发布的属性描述
    * */
    public  void  updateGoodAttri(String  publishID,List<PublishGoodAttribute> list);
    /**
     * 获取一条记录的热值属性
     * */
    public  List<PublishGoodAttribute> getHotAttributes(String  publishId);
    /**
     * 批量添加一个物品的属性描述
     * */
    public  void  updatePubMsgAttris(String  publishID,List<PublishGoodAttribute>  list);
    /**
     * 删除一条物品记录的所有属性描述
     * */
    public  void  deletePubMsgAttri(String  publishID);
}
